<?php

/*
 * Niken Larasati
 * larasati.n@students.amikom.ac.id
 */

class kk_m extends CI_Model{
    public function __construct() {
        parent::__construct();
    }
    
    function ambil_data(){
        $this->db->select('kk.no_kk as no_kk,penduduk.nik as nik,kk.alamat as alamat,
                            kk.rt as rt,kk.rw as rw,status_kk.status_kk as status_kk,
                            kk.tgl_pembuatan as tgl_pembuatan');
        $this->db->from('kk');
        $this->db->join('kk','penduduk.nik=kk.no_kk','status_kk.id_status_kk=kk.no_kk');
        return $this->db->get();
    }
}

?>